package com.ncs.nc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ncs.nc.mapper.GoodsMapper;
import com.ncs.nc.entity.Goods;
import com.ncs.nc.service.GoodsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("gs")
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService {

    @Resource
    private GoodsMapper gm;

    @Override
    public List<Goods> getAllGoods() {
        return gm.findAllGoods();
    }
}
